#!/usr/bin/python
# -*- coding: utf-8 -*-

from pygraphviz import AGraph

#graph: bgcolor
#node: color(line)
#edge: color(line)

graph = AGraph()

graph.node_attr['shape'] = 'rectangle'
graph.graph_attr['label'] = 'Manager inheritance'
graph.edge_attr['arrowtail'] = 'normal'

graph.add_edge('Utils', u'ShellManager')
graph.add_edge('ShellManager', 'DevelManager')
graph.add_edge('DevelManager', 'ProjectManager')
graph.add_edge('DevelManager', 'InstallManager')
graph.add_edge('DevelManager', 'CppTester')

graph.draw('manager_inheritance.png', 'png', 'dot')
#graph.write('f.dot')
